﻿using System;
using System.Collections.Generic;
using Shuriken.Base;

namespace Shuriken.Modules
{
    [DefaultAction]
    [ActionName("Large Text")]
    [ActionSubjectType(typeof(ITextSubject))]
    public class LargeTextAction : BaseAction
    {
        public override void Execute(ISubject subject)
        {
            ApplicationServiceHost.DefaultInstance.ExecuteCommand("Application", "DisplayNotification", subject.Name);
        }

        public override bool CanExecuteOn(ISubject subject)
        {
            if (typeof(ITextSubject).IsAssignableFrom(subject.GetType()))
            {
                return true;
            }

            return false;
        }
    }
}
